package com.bocloud.cmp.server.controller.resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bocloud.cmp.interfaces.resource.ResourceService;
import com.bocloud.common.model.BsmResult;

/**
 * 资源实体Controller入口
 * 
 * @author weiwei
 *
 */
@RestController
@RequestMapping("/res")
public class ResourceController {

	@Autowired
	private ResourceService resourceService;

	/**
	 * openstack和vmare的存储列表
	 * 
	 * @return
	 */
	@RequestMapping(value = "/vendor/store", method = { RequestMethod.POST })
	public BsmResult vendorStoreList() {
		return resourceService.vendorStoreList();
	}

}
